package com.zzl.bonds.ticket.dto.credit;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.apidoc.constants.RequiredType;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author : spp
 * @date : 2021/12/2 14:31
 */
@ApidocModel
@Data
public class BwBankAddDto {

    @ApidocModelProperty(description = "供应商开票额度id，没有默认是新增，传了就会修改")
    private String id;

    @NotBlank(message = "金融机构的id 不能为空")
    @ApidocModelProperty(description = "金融机构的 id", required = RequiredType.TRUE)
    private String institutyId;


    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "凭证融资额度")
    private Double creditAllAmount;

    @NotBlank(message = "接收企业 不能为空")
    @ApidocModelProperty(description = "接收企业id", required = RequiredType.TRUE)
    private String receiveEnterpriseId;
    @ApidocModelProperty(description = "无额度限制勾选框，true 勾选，false不勾选")
    private Boolean creditLimitFlag;

}
